package pojo;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6262156209743050697L;
	private Integer id;
	private String name;
	private Date publishDate;
	private String author;
	private Double price;
	private boolean isNew;
	private String press;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getPublishDate() {
		return publishDate;
	}
	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public boolean isNew() {
		return isNew;
	}
	public void setNew(boolean isNew) {
		this.isNew = isNew;
	}
	public String getPress() {
		return press;
	}
	public void setPress(String press) {
		this.press = press;
	}
	public Book() {
		super();
	}
	public Book(Integer id, String name, Date publishDate, String author,
			Double price, boolean isNew, String press) {
		super();
		this.id = id;
		this.name = name;
		this.publishDate = publishDate;
		this.author = author;
		this.price = price;
		this.isNew = isNew;
		this.press = press;
	}
	@Override
	public String toString() {
		return "Book [id=" + id + ", name=" + name + ", publishDate="
				+ publishDate + ", author=" + author + ", price=" + price
				+ ", isNew=" + isNew + ", press=" + press + "]";
	}
	
	
}
